<div class="whiteban">
    <ul>

<?php if( $sf_user->hasCredential('Admin') /* User is administrator */ ): ?>
        <li>
            <?php echo link_to(
                            image_tag(
                                'productadmin.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('wares admin')
                                    , 'title' => __('wares admin')
                                )
                            )
                            , 'pradmin'
                        ) ?>
        </li>
        <li>
            <?php echo link_to(
                            image_tag(
                                'category.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('categories')
                                    , 'title' => __('categories')
                                )
                            )
                            , 'category'
                        ) ?>
        </li>

<!--
        <li>
            <?php echo link_to(
                            image_tag(
                                'banners.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('banners')
                                    , 'title' => __('banners')
                                )
                            )
                            , 'banner'
                        ) ?>
        </li>
        <li>
            <?php echo link_to(
                            image_tag(
                                'comments.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('remarks')
                                    , 'title' => __('remarks')
                                )
                            )
                            , 'remarks/list'
                        ) ?>
        </li>
-->
        <li>
            <?php echo link_to(
                            image_tag(
                                'orders.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('orders')
                                    , 'title' => __('orders')
                                )
                            )
                            , 'cart/orders'
                        ) ?>
        </li>
<!--
        <li>
            <?php echo link_to(
                            image_tag(
                                'system_lists.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('system lists')
                                    , 'title' => __('system lists')
                                )
                            )
                            , 'listvalues/list?filters[parent_id]=0&filter=filter'
                        ) ?>
        </li>
        <li>
            <?php echo link_to(
                            image_tag(
                                'partners.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('partners')
                                    , 'title' => __('partners')
                                )
                            )
                            , 'partners/list'
                        ) ?>
        </li>
-->
        <li>
            <?php echo link_to(
                            image_tag(
                                'admins.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('users')
                                    , 'title' => __('users')
                                )
                            )
                            , 'user/list'
                        ) ?>
        </li>
        <li>
            <?php echo link_to(
                            image_tag(
                                'tree.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('tree')
                                    , 'title' => __('tree')
                                )
                            )
                            , 'tree/list'
                        ) ?>
        </li>

<?php endif; /* END IF ( user is administrator ) */ ?>

<?php if( get_user_id() /* User is logged in */ ): ?>

        <li>
            <?php echo link_to(
                            image_tag(
                                'shipping.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('shipping admin')
                                    , 'title' => __('shipping admin')
                                )
                            )
                            , 'shipping/list'
                        ) ?>
        </li>
<!--
        <li>
            <?php echo link_to(
                            image_tag(
                                'profile.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('profile')
                                    , 'title' => __('profile')
                                )
                            )
                            , 'user/profile'
                        ) ?>
        </li>
        <li>
            <?php echo link_to(
                            image_tag(
                                'basket_history.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('shopping history')
                                    , 'title' => __('shopping history')
                                )
                            )
                            , 'cart/mylist'
                        ) ?>
        </li>
-->
        <li>
            <?php echo link_to(
                            image_tag(
                                'cart_list.jpg'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('shopping history')
                                    , 'title' => __('shopping history')
                                )
                            )
                            , 'cart/list'
                        ) ?>
        </li>
        <li>
            <?php echo link_to(
                            image_tag(
                                'watchlist.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('watchlist')
                                    , 'title' => __('watchlist')
                                )
                            )
                            , 'product/watchlist'
                        ) ?>
        </li>
        <li>
            <?php echo link_to(
                            image_tag(
                                'logout.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('logout')
                                    , 'title' => __('logout')
                                )
                            )
                            , 'user/logout'
                        ) ?>
        </li>
<?php else: /* User is NOT logged in */ ?>
        <li>
            <?php echo link_to(
                            image_tag(
                                'lock.png'
                                , array(
                                    'border' => '0'
                                    , 'alt' => __('login')
                                    , 'title' => __('login')
                                    , 'style' => 'border: 0px;'
                                )
                            )
                            , 'user/login'
                        ) ?>
        </li>
<?php endif;  /* END ELSE IF ( user is logged ) */ ?>

    </ul>
</div>